package com.zhouxiaoge.json;

import com.google.gson.annotations.SerializedName;

/**
 * @author 周小哥  gqzmy@163.com 2022/8/14 11:04
 */

public class User {

    private Long id;

    private String name;

    private Integer age;

    private Boolean death;

    @SerializedName(value = "mail", alternate = "emailAddress")
    private String email;

    public User() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Boolean getDeath() {
        return death;
    }

    public void setDeath(Boolean death) {
        this.death = death;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", death=" + death +
                ", email='" + email + '\'' +
                '}';
    }
}
